home *** CD-ROM | disk | FTP | other *** search
- Path: raita.oulu.fi!tikarjal
- From: Timo Karjalainen <tikarjal@raita.oulu.fi>
- Newsgroups: comp.sys.amiga.programmer
- Subject: Q: Can I close ALS reqs from code?
- Date: Fri, 23 Feb 1996 18:38:04 +0200
- Organization: University of Oulu
- Message-ID: <Pine.SGI.3.91.960223182042.22497A-100000@raita.oulu.fi>
- NNTP-Posting-Host: raita.oulu.fi
- Mime-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=US-ASCII
-
- I have a problem that makes my code a little user-hostile.
-
- I'm using the ASL tags to get the IDCMP messages arriving at the
- IDCMP port that aren't for the ASL requester. The problem is that
- I can't see any way I could CLOSE THE REQUESTER programmatically.
- Is there any way (except inserting a fake input event of mouse click
- over the close gadget of the requester...)
-
- An example: The user has an ASL requester open, lets say a screen mode
- requester. Suddenly (s)he wants to quit my program, so (s)he selects the
- program's window, then "Quit" from the Project menu. Obviously the
- program must get the ASL requester window closed, but how? Currently I
- just keep track of open ASL reqs and, if I need them closed, tell the
- user to close them.
-
- The IDCMP sharing / message processing hook is a clean way of being able
- to respond to user actions while the requester is open, but it is
- essential that the req can be closed from code. If it can't be done,
- please someone tell the Amiga Tech. people to add such a possibility into
- the asl.library. An LVO of something like CloseAslRequest(req) would be
- useful!!
-
- tikarjal@raita.oulu.fi University of Oulu
- Dept. of Mathematical Sciences
-